<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<ol class="breadcrumb">
	<li><a href="${pageContext.request.contextPath}/home">首页</a></li>
	<li><a
		href="${pageContext.request.contextPath}/category?categoryId=${article.category.id}">${article.category.name}</a></li>
	<li class="active">${article.title}</li>
</ol>

<article>
	<h4 class="article-title">
		<a href="">${article.title}</a>
	</h4>
	<ul class="article-meta">
		<li>『<fmt:formatDate value="${article.pubDate }" type="date"
				pattern="yyyy-MM-dd" />』
		</li>
		<li><span>|</span></li>
		<li><a
			href="${pageContext.request.contextPath}/category?categoryId=${article.category.id}">${article.category.name}</a></li>
		<li><span>|</span></li>
		<li>${article.clicks}&nbspViews</li>
		<li><span>|</span></li>
		<li>author：<a onclick="return false;" style="cursor: pointer;">${article.user.nickname}</a>
		</li>
	</ul>
	<section class="article-content clearfix article-page">
		${article.content}</section>

	<section class="article-copyright">
		<p>
			&lt;&lt;上一篇：<a
				href="${pageContext.request.contextPath}/article?articleId=${preArticle.id}">${preArticle.title}</a>
		</p>
		<p>
			&gt;&gt;下一篇：<a
				href="${pageContext.request.contextPath}/article?articleId=${nextArticle.id}">${nextArticle.title}
			</a>
		</p>
		<p>
			转载注明：<a href="${pageContext.request.contextPath}/about">孤星可</a>&gt;&gt;<a
				href="${pageContext.request.contextPath}/article?articleId=${article.id}">${article.title}</a>
		</p>
	</section>
</article>
<section>
	<jsp:include page="/template/msg/_form.jsp"></jsp:include>
	<jsp:include page="/template/msg/list.jsp"></jsp:include>
</section>
